﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using T1Task.Properties;


namespace T1Task
{
    class Program
    {
        static void Main(string[] args)
        {
            Game  games1 = new Game();
            games1.name = "开心消消乐";
            games1.category = "休闲";
            games1.price = 100.00;
            games1.stock = 66;
            games1.addTime = DateTime.Now;

            Game games2 = new Game();
            games2.name ="阴阳师";
            games2.category ="暴力";
            games2.price =120;
            games2.stock =100;
            games2.addTime = DateTime.Now;

            Game games3 = new Game();
            games3.name = "我的世界";
            games3.category = "益智";
            games3.price = 300;
            games3.stock = 50;
            games3.addTime = DateTime.Now;


            Game[] gameList = new Game[3];
            gameList[0] = games1;
            gameList[1] = games2;
            gameList[2] = games3;

            for (int i=0;i<gameList.Length;i++)
            {
                gameList[i].See();
                gameList[i].Sale(1);
                gameList[i].Add(2);

            }
           
        }
        
    }
}
